package com.aaa.demo08;

/**
 * @author ${崔灿}
 * @date 2022/11/01 16:37
 **/

public class Girl extends Thread{
    private BankCard bankCard;
    public Girl(BankCard bankCard){
        this.bankCard = bankCard;
    }

    @Override
    public void run() {
        for(int i = 0; i <10 ; i++){
            bankCard.token(1000);
        }
    }
}
